<div class="box" th:attrappend="class=${object.metaShowProperties ? '' : ' collapsed-box'}">
	<div class="box-header with-border">
		<th:block th:include="tool-collapse :: frag(${!object.metaShowProperties})"></th:block>
		<h3 class="box-title">MProperty</h3>
	</div>
	<div class="box-body">
		<div class="nav-tabs-custom">
		<ul class="nav nav-tabs">
			<th:block th:each="p : ${object.properties}">
				<li th:class="${p.metaShow ? 'active' : ''}">
					<a th:href="|#divMPropertyContent-${p.id}|" data-toggle="tab">
						<span th:text="${p.name}"></span>
					</a>
				</li>
			</th:block>
		</ul>
		<div class="tab-content">
			<th:block th:each="p : ${object.properties}">
				<div class="tab-pane" th:id="|divMPropertyContent-${p.id}|" th:attrappend="class=${p.metaShow ? ' active' : ''}">
					<!-- Main content -->
					<div class="box-body">
						<table class="table table-bordered" data-meta-po="MProperty">
							<tbody><tr>
								<th class="col-md-4">属性</th>
								<th class="col-md-5">值</th>
								<th class="col-md-3">操作</th>
							</tr>
							<th:block th:with="objectPropertyNames=${T(java.util.Arrays).asList('id', 'name', 'description', 'type', 'typeDetail', 'key', 'mandatory', 'unique', 'max', 'min', 'defaultValue', 'index')}">
								<th:block th:each="property : ${objectPropertyNames}">
									<tr th:if="${property == 'id'}">
										<td>id</td>
										<td th:text="${p.id}"></td>
										<td>
										</td>
									</tr>
									<tr th:unless="${property == 'id'}">
										<td th:text="${property}"></td>
										<td><input class="form-control input-sm" th:value="${p[property]}"></td>
										<td>
											<th:block th:include="meta/man/object-operations :: frag(${p}, ${property})"></th:block>
										</td>
									</tr>
								</th:block>
								<th:block th:each="key : ${p.data.keySet()}">
									<tr>
										<td th:text="${'data.' + key}"></td>
										<td><input class="form-control input-sm" th:value="${p.data.get(key)}"></td>
										<td>
											<th:block th:include="meta/man/object-operations :: frag(${p}, ${'data.' + key})"></th:block>
										</td>
									</tr>
								</th:block>
								<tr>
									<td><input class="form-control input-sm" name="key"></td>
									<td><input class="form-control input-sm" name="value"></td>
									<td>
										<div class="btn-group btn-xs">
											<button type="button" class="btn btn-xs" data-meta-add>Add</button>
										</div>
									</td>
								</tr>
							</th:block>
							</tbody></table>
					</div>
					<!-- /.content -->
				</div>
			</th:block>
		</div>
		<!-- /.tab-content -->
	</div>
	</div>
</div>